﻿using System;
using Red.Core.GoogleAnalytics;

namespace Red.Launcher.Menus.Workspaces.Admin
{
    public partial class WorkspaceAdminDialog
    {
        #region Private Data

        readonly string _analyticsCategory = typeof( WorkspaceAdminDialog ).Name;

        #endregion Private Data

        #region C-Tor

        partial void InitializeAnalytics()
        {
            Activated += UserListDialogAnalytics_Activated;
        }

        #endregion C-Tor

        #region Event Handlers

        private void UserListDialogAnalytics_Activated( object sender, EventArgs e )
        {
            GoogleAnalyticsService.Instance.SetScreen( _analyticsCategory );
        }

        #endregion Event Handlers
    }
}
